package com.example.electronicmall.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.electronicmall.entity.ItemEntity;
import com.example.electronicmall.to.ItemTo;
import com.example.electronicmall.utils.PageUtils;
import org.springframework.web.bind.annotation.PostMapping;

import java.util.List;
import java.util.Map;

/**
 * 
 *
 * @author mwh
 * @email 1062966353@qq.com
 * @date 2022-12-02 14:48:53
 */
public interface ItemService extends IService<ItemEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void saveItem(ItemTo itemTo);

    List<ItemEntity> listItemsByShopId(Integer shopId);

    List<ItemTo> listAllItemsByShopId(Integer shopId);

    void upItem(Integer itemId);

    void downItem(int itemId);
}

